From 9e613be8c61518d92215f1f4480f88c51092dcb3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 8 Oct 2017 08:43:03 -0400 Subject: [PATCH] inspector: Show child bounds for repeat nodes The more information, the better. --- gtk/inspector/recorder.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c index 7f2ed0aeea..eac8fafe28 100644 --- a/gtk/inspector/recorder.c +++ b/gtk/inspector/recorder.c @@ -502,11 +502,24 @@ populate_render_node_properties (GtkListStore *store, } break; + case GSK_REPEAT_NODE: + { + const graphene_rect_t *child_bounds = gsk_repeat_node_peek_child_bounds (node); + + tmp = g_strdup_printf ("%.2f x %.2f + %.2f + %.2f", + child_bounds->size.width, + child_bounds->size.height, + child_bounds->origin.x, + child_bounds->origin.y); + add_text_row (store, "Child Bounds", tmp); + g_free (tmp); + } + break; + case GSK_NOT_A_RENDER_NODE: case GSK_CONTAINER_NODE: case GSK_TRANSFORM_NODE: case GSK_COLOR_MATRIX_NODE: - case GSK_REPEAT_NODE: case GSK_CLIP_NODE: case GSK_ROUNDED_CLIP_NODE: case GSK_SHADOW_NODE: -- 2.30.2